package com.xique.park.api;

import com.xique.common.core.constant.ServiceNameConstants;
import com.xique.common.core.domain.R;
import com.xique.park.api.factory.ParkStatisticsIncomeFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 收入统计报表 Feign 客户端
 *
 * @author xique
 */
@FeignClient(contextId = "ParkStatisticsIncomeService", value = ServiceNameConstants.PARK_BIZ_SERVICE, fallbackFactory = ParkStatisticsIncomeFallbackFactory.class)
public interface ParkStatisticsIncomeService {

    /**
     * 统计车场昨天的收入
     *
     * @return /
     */
    @PostMapping("/web/statistics/yesterdayStatisticsIncome")
    R<String> yesterdayStatisticsIncome();

}
